package pers.cz.mxgraph;

import org.dom4j.Element;
import pers.cz.flowcell.JefFlowCell;

import java.util.List;
import java.util.Map;

/**
 * @program: Reids
 * @description: MxEdge
 * @author: Cheng Zhi
 * @create: 2023-01-06 11:32
 **/
public class MxEdge extends MxElement {

    private static final String TRAGET = "target";

    private static final String SOURCE = "source";

    public MxEdge(Element element) {
        super(element);
    }

    public Integer getTargetId() {
        String s = (String) getData().get(TRAGET);
        return Integer.valueOf(s);
    }

    public Integer getSourceId() {
        String s = (String) getData().get(SOURCE);
        return Integer.valueOf(s);
    }

    @Override
    public Integer getId() {
        return null;
    }

    @Override
    public String getName() {
        return null;
    }

    @Override
    public String getFlowNodeName() {
        return null;
    }

    @Override
    public void setParams(Map<String, Object> params) {

    }

    @Override
    public Map<String, Object> getParams() {
        return null;
    }

    @Override
    public Boolean isStart() {
        return null;
    }

    @Override
    public boolean hasNext() {
        return false;
    }

    @Override
    public List<JefFlowCell> getNextCell() {
        return null;
    }

    @Override
    public List<Integer> getUpstreamNode() {
        return null;
    }

    @Override
    public boolean hasManyUpstreamMode() {
        return false;
    }

    @Override
    public Map<String, Object> getCustomizeData() {
        return null;
    }
}
